package com.wyl.pmd.rule.errorprone;

public class ConstructorCallsOverridableMethod2 extends ConstructorCallsOverridableMethod1 {

	private String name;

	public ConstructorCallsOverridableMethod2(){
	    super(); //Automatic call leads to NullPointerException
	    name = "ConstructorCallsOverridableMethod2";
	  }

	public String toString() {
		return name.toUpperCase();
	}

	public static void main(String[] args) {
		System.out.println(new ConstructorCallsOverridableMethod2());
	}
	
}
